package Homework7;

public class Person2 extends Person0 implements Comparable<Person2> {
    public Person2(String n, int a) {
        super(n, a);
    }

    @Override
    public int compareTo(Person2 other) {
        return Integer.compare(this.getAge(), other.getAge());
    }
}
